using System;
namespace ActionSystem.Core
{
    /// <summary>
    /// ActionConfigAttribute：用来定义Action的数据
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class PassiveActionConfigAttribute : Attribute
    {
        public Type handlerType { get; protected set; }
        /// <summary>
        /// 指定handler
        /// </summary>
        /// <param name="handlerType">当前Action对应的handler</param>
        public PassiveActionConfigAttribute(Type handlerType)
        {
            this.handlerType = handlerType;
        }
    }
}